Install tomcat: The code is as follows:Copy code Apt-get updateApt-get install tomcat6 tomcat6-admin Download and install apachesolr: The code is as follows:Copy code Wget http://mirrors.cnnic.cn/apache/lucene/solr/4.7.2/solr-4.7.2.tgzTar-vxf solr-4.7.2.tgzMkdir/opt/solrSolr-4.4.0/example/solr/*/opt/
.
Finally, let's talk about how solr is used in the actual production process and the overall Solr architecture (but this is only a basic architecture, and the actual situation may be much more complicated than this ).
1. The Window Index Service is responsible for regular incremental updates (some people may ask why solr auto-incremental updates are not re
-to-use toolkit to facilitate full-text retrieval in the target system, or to build a complete full-text search engine on this basis. SOLR (read as "solar") is an open source enterprise search platform for the Apache Lucene project. Its main functions include full-text search, hit-mark, faceted
SOLR, what is SOLR, is what you want to eat "rancid", can't eat, out of date~Well ... A joke, pronunciation is ' search ', dedicated to search for an open source framework, lunce do not say, do not use, troubleLet's talk about SOLR. The latest update is 6.0, April 7-8 Update
.5, The last step configuration solr.home, there can be three ways.1) method based on the current pathThis situation needs to be started in the c:/solr-tomcat/directory TOMCAT,SOLR find./SOLR, so you need to switch to c:/solr-tomcat/at boot time2) based on environment variablesWindows establishes solr.home in environme
After learning from the previous two articles, using SOLR for data import and incremental indexing of MySQL should be all right.
(Children's shoes are not clear, please check the following blog posts to learn: http://blog.csdn.net/weijonathan/article/details/16962257, Http://blog.csdn.net/weijonathan /article/details/16961299)
Next we'll learn to read the data we want from SOLR. You can also verify with the
Q: for pinyin and Pinyin first letter support, when you search for goods, if you want to enter the pinyin and pinyin first letter to give the product information, how to do?There are 2 ways to implement them, but they are in fact corresponding.
using Lucene to achieve
1. Build an index, more than one index field, that is, pinyin and pinyin first letter of the 2 fields. A field that is merged.(Pinyin and pinyin initials can be obtained by Pinyi
processing.
LUCENE,SOLR, ElasticSearch?Now the mainstream search engine is probably: Lucene,solr,elasticsearch.They are indexed based on an inverted index, what is an inverted index?
WikipediaInverted index (English: Inverted index), also often referred to as a reverse index, place file, or reverse file, is an indexed method that is used to store t
folder and copy the E:\solr-4.9.1\example\ Resources\log4j.properties file to the Classes folder, modify the Log4j.properties file, and modify the value of "Log4j.appender.file.File" to ". /logs/solr.log ";Figure 1-12 SOLR running successfully in Tomcat 11. Delete the Solr.war file under the E:\apache-tomcat-8.0.9\webapps folder, restart Tomcat, enter the http://localhost:8080 in the browser /
SOLR introduces SOLR roleSOLR is a high performance, using Java5 development, based on Lucene Full-Text Search server. At the same time, it is extended to provide a richer query language than Lucene , while it is configurable, extensible, and optimized for query performance, and provides a complete functional management interface, a very good Full-Text
disable startup locking, allowing for additions and updates.
LockType
Single: Used in a read-only index or when no other process modifies the index.Native: Using an operating system local file lock, you cannot use multiple SOLR to share an index in the same JVM.Simple: Use a text file to lock the index.
2 Querying configuration Query
Property
Describe
Maxbooleanclauses
Maximum number o
DocumentDocument is the most basic unit of the SOLR index (verb, indexing) and search, which resembles a record in a relational database table and can contain one or more fields (field), each containing a name and text value. A field can be stored in an index while it is indexed, and the value of the field can be returned when the search is searched, and usually
Why do you need a search engine? Simple database is not enough? If you just create a small website, the database is enough. But when you create a neutral or large application, the search engine is a smarter choice. As a matter of course, small sites can also use SOLR to obtain high-relevance search results.
Imagine th
[Java] Solr video tutorial and solr video tutorial for enterprise distributed search platform
Course BackgroundDistributed search engines that are highly available, scalable, and fault-tolerant. Solr is a high-performance full-text
.
Each node makes up a peer network structure, and when some nodes fail, they are automatically assigned other nodes to work instead.
Disadvantages
There is only one developer (the current Elasticsearch GitHub organization is more than that, already has a fairly active maintainer)
Not enough automatic (not suitable for the current new index warmup API)
About SOLR *
1. first assume that my data fields are: Name, tel, address preset Search is the Name field, if the data to be searched is exactly the name field, you do not need to specify the search field name. 2. Query Rules:If you want to query a specific field (not a preset field), precede the query with the field name plus ":" (No "sign") symbol,For example: Address: tel:88xxxxx1, Haidian District, Beijing Software
Full-text search engine Solr, full-text solr
Solr is an independent enterprise-level search application server that provides APIs similar to Web-service. You can submit an XML file of a certain format to the search engine server
structure, and when some nodes fail, they are automatically assigned other nodes to work instead.
Disadvantages
There is only one developer (the current Elasticsearch GitHub organization is more than that, already has a fairly active maintainer)
Not enough automatic (not suitable for the current new index warmup API)
About SOLR *SOLR (read
program to use. Copy all the packages under Dist \ solrj-lib to the client project. The client has several core classes: solrsever, solrquery, queryresponse, and solrdocumentlist.
Solrsever is the server. Its query (solrquery query) method accepts a query request and returns queryresponse. queryresponse contains getelapsedtime for search and getresults for result set. Getresults returns solrdocumentlist, which contains all query results and the total
Why do you need a search engine. A simple database is not enough. If you just create a small site, the database is enough. But when you create neutral or large applications, search engines are a smarter choice. Of course, a small web site can also use SOLR to get highly correlated search results.
Imagine you are writin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.